package com.zxl.grocery;

import com.zxl.grocery.core.config.WebAutoConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * SpringBoot 方式启动类
 * Created by Lzx on 2017/7/3.
 */
@SpringBootApplication(exclude = {WebAutoConfiguration.class})
public class GroceryApplication {

    protected final static Logger logger = LoggerFactory.getLogger(GroceryApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(GroceryApplication.class, args);
        logger.info("GroceryApplication is success!");

//        GenerateParams generateParams = new GenerateParams();
//
//        generateParams.setRemoveTablePrefix(new String[]{"sys_"});
//        generateParams.setAuthor("zxl");
//        generateParams.setJdbcUrl("jdbc:mysql://127.0.0.1:3306/grocery_module?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT");
//        generateParams.setGeneratorInterface(false);
//        generateParams.setParentPackage("com.zxl.grocery.modular.system");
//        generateParams.setGeneratorInterface(false);
//
//        SimpleGenerator.doGeneration(generateParams);

    }
}
